package main

import (
	"fmt"
	"strconv"
)

func main() {
	/*
		Type Convert

	*/

	//string转成int：
	//int, err := strconv.Atoi(string)
	//string转成int64：
	//int64, err := strconv.ParseInt(string, 10, 64)
	//int转成string：
	//string := strconv.Itoa(int)
	//int64转成string：
	//string := strconv.FormatInt(int64,10)

	a := 65
	var b string
	b = string(a)
	fmt.Printf("%T,%s\n", b, b)

	b = strconv.Itoa(a)
	fmt.Printf("%T,%s\n", b, b)

	var c int
	c, _ = strconv.Atoi(b)
	fmt.Println(c + 1)
}
